package top.hiai.model.base;

import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

/**
* @Author www.hiai.top
* @Email  goodsking@163.com
* @Message 更多资源尽在www.hiai.top,开发者：黄康权
* @Introduction 类的介绍
*/

@SuppressWarnings("serial")
public abstract class ArticleBase<M extends ArticleBase<M>> extends Model<M> implements IBean {

	@SuppressWarnings("unchecked")
	public M setAid(java.lang.Integer aid) {
		set("aid", aid);
		return (M)this;
	}
	
	public java.lang.Integer getAid() {
		return getInt("aid");
	}
	
	@SuppressWarnings("unchecked")
	public M setUser_id(java.lang.Integer user_id) {
		set("user_id", user_id);
		return (M)this;
	}
	
	public java.lang.Integer getUuser_id() {
		return getInt("user_id");
	}
	
	@SuppressWarnings("unchecked")
	public M setPublish_date(Date publish_date) {
		set("publish_date", publish_date);
		return (M)this;
	}
	
	public Date getPublish_date() {
		return getDate("publish_date");
	}
	
	public M setContent(java.lang.String content) {
		set("content", content);
		return (M)this;
	}
	
	public java.lang.String getContent() {
		return getStr("content");
	}
	
	public M setName(java.lang.String name) {
		set("name", name);
		return (M)this;
	}
	
	public java.lang.String getName() {
		return getStr("name");
	}
	
	@SuppressWarnings("unchecked")
	public M setIs_hot(java.lang.Boolean is_hot) {
		set("is_hot", is_hot);
		return (M)this;
	}
	
	public java.lang.Boolean getIs_hot() {
		return get("is_hot");
	}
	
	@SuppressWarnings("unchecked")
	public M setType_id(java.lang.Integer type_id) {
		set("type_id", type_id);
		return (M)this;
	}
	
	public java.lang.Integer getType_id() {
		return getInt("type_id");
	}
	
	@SuppressWarnings("unchecked")
	public M setState(java.lang.Integer state) {
		set("state", state);
		return (M)this;
	}
	
	public java.lang.Integer getState() {
		return getInt("state");
	}
}
